<ui:composition template="template.xhtml"
				xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui">
<link rel="stylesheet" href="../css/style.css" type="text/css"/>
<ui:define name="body">
<table>
	<tr>
		<td class="texto3"  style="height:400px;width:900px;background-color: #F5F5DC" align="center">
			<p:messages id="msgs" showDetail="false"/>
			<h:form >  
					    <p:dataTable paginator="true" selectionMode="single" selection="#{turmaBean.selectedTurma}"
					     paginatorPosition="bottom" rows="8" var="turma" value="#{turmaBean.turmas}" id="turmaListSlc" emptyMessage="#{msg.nenhum_registro}">
					        <f:facet name="header">
					            #{msg.label_lista_turmas_selecionar}
					        </f:facet>
					
					        <p:column headerText="#{msg.label_nome}" style="width:250px">
					            <p:cellEditor>
					                <f:facet name="output">
					                    <h:outputText value="#{turma.nome}" />
					                </f:facet>
					                <f:facet name="input">
					                    <p:inputText value="#{turma.nome}" maxlength="100" style="width:100%"/>
					                </f:facet>
					            </p:cellEditor>
					        </p:column>
					
					        <p:column headerText="#{msg.label_descricao}" style="width:520px">
					            <p:cellEditor>
					                <f:facet name="output">
					                    <h:outputText value="#{turma.descricao}" />
					                </f:facet>
					                <f:facet name="input">
					                    <p:inputText value="#{turma.descricao}" maxlength="255" style="width:100%"/>
					                </f:facet>
					            </p:cellEditor>
					        </p:column>				  
										
					        <p:column headerText="#{msg.label_opcoes}">
					            <p:rowEditor />
					        </p:column>
					        
					        <f:facet name="footer">  
#             					<p:commandButton value="#{msg.button_selecionar}" image="../images/selecionar.gif"  action="#{turmaBean.selecionarTurma}" />  
#         </f:facet> 
					
					    </p:dataTable>           
			 </h:form>
		</td>
	</tr>
</table>
</ui:define>
</ui:composition>